package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Integral;
import cn.wolfcode.trip.base.domain.IntegralType;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IntegralTypeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(IntegralType record);

    IntegralType selectByPrimaryKey(Long id);

    List<IntegralType> selectAll();

    int updateByPrimaryKey(IntegralType record);

    List<IntegralType> selectForList(QueryObject qo);

    Integer selectGradeById(Long id);

    void updateGrade(@Param("typeId") Long typeId, @Param("grade") int grade);
}